package com.mla.fastdfs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mla.fastdfs.dto.RolePermissionDto;
import com.mla.fastdfs.pojo.RolePermission;

import java.util.List;

/**
 *
 * @author Jun
 * @version v1.0
 * @date 2020-08-17
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    RolePermission selectByPrimaryKey(Integer permit_id);

    List<RolePermission> selectByRecord(RolePermission record);

    void delByRoleId(Integer roleId);

    List<RolePermissionDto> selectByPermission(RolePermissionDto record);
}